<template>

  <div class="qualitySafety_container">
    <div class="left_box">
      <div class="box">
        <h6>渠道占比</h6>
        <div class="unit">
          <span>销量：万吨</span>
          <span>销售额：亿元</span>
        </div>
        <div class="map">
          <div id="one"></div>
          <div id="two"></div>
        </div>
        <div class="button">
          <p v-for="item in variousChannelChart.channelTypes"
             :key="item">{{ item }}</p>
        </div>
      </div>
      <div class="box">
        <h6>批发市场</h6>
        <div class="top">
          <div class="u2">
            <span :class="isShowA == 0 ? 'one' : 'five'"
                  @click="bindClickA(0)">近一年</span>
            <span :class="isShowA == 1 ? 'one' : 'five'"
                  @click="bindClickA(1)">近五年</span>
          </div>
        </div>
        <div id="three">
          <FoldedColumnMixing :option="optionOne"></FoldedColumnMixing>
        </div>
      </div>
      <div class="box">
        <h6>新渠道</h6>
        <div class="top">
          <div class="u2">
            <span :class="isShowB == 0 ? 'one' : 'five'"
                  @click="bindClickB(0)">近一年</span>
            <span :class="isShowB == 1 ? 'one' : 'five'"
                  @click="bindClickB(1)">近五年</span>
          </div>
        </div>
        <div id="three">
          <FoldedColumnMixing :option="optionTow"></FoldedColumnMixing>
        </div>
      </div>
    </div>
    <div class="center_box">
      <div class="statistics">
        <h6>汇总信息</h6>
        <Statistics :option="option"></Statistics>
      </div>
      <div class="box">
        <h6>新渠道</h6>
        <div class="checkbox">
          <el-checkbox v-model="checkedA">商超</el-checkbox>
          <el-checkbox v-model="checkedB">电商</el-checkbox>
          <el-checkbox v-model="checkedC">大B</el-checkbox>
          <el-checkbox v-model="checkedD">批发市场</el-checkbox>
        </div>
        <ChainMap></ChainMap>
      </div>
    </div>
    <div class="right_box">
      <div class="box">
        <h6>商超</h6>
        <div class="top">
          <div class="u2">
            <span :class="isShowC == 0 ? 'one' : 'five'"
                  @click="bindClickC(0)">近一年</span>
            <span :class="isShowC == 1 ? 'one' : 'five'"
                  @click="bindClickC(1)">近五年</span>
          </div>
        </div>
        <div id="three">
          <FoldedColumnMixing :option="optionThree"></FoldedColumnMixing>
        </div>
      </div>
      <div class="box">
        <h6>大B</h6>
        <div class="top">
          <div class="u2">
            <span :class="isShowD == 0 ? 'one' : 'five'"
                  @click="bindClickD(0)">近一年</span>
            <span :class="isShowD == 1 ? 'one' : 'five'"
                  @click="bindClickD(1)">近五年</span>
          </div>
        </div>
        <div id="three">
          <FoldedColumnMixing :option="optionFour"></FoldedColumnMixing>
        </div>
      </div>
      <div class="box">
        <h6>电商</h6>
        <div class="top">
          <div class="u2">
            <span :class="isShowF == 0 ? 'one' : 'five'"
                  @click="bindClickF(0)">近一年</span>
            <span :class="isShowF == 1 ? 'one' : 'five'"
                  @click="bindClickF(1)">近五年</span>
          </div>
        </div>
        <div id="three">
          <FoldedColumnMixing :option="optionFive"></FoldedColumnMixing>
        </div>
      </div>
    </div>
  </div>

  <!-- <div class="content">
    <ul class="left">
      <li class="left-one">
        <div class="box">
          <h6>渠道占比</h6>
          <div class="unit">
            <span>销量：万吨</span>
            <span>销售额：亿元</span>
          </div>
          <div class="map">
            <div id="one"></div>
            <div id="two"></div>
          </div>
          <div class="button">
            <p v-for="item in variousChannelChart.channelTypes"
               :key="item">{{ item }}</p>
          </div>
        </div>
      </li>
      <li class="left-one">
        <div class="box">
          <h6>批发市场</h6>
          <div class="top">
            <div class="u2">
              <span :class="isShowA == 0 ? 'one' : 'five'"
                    @click="bindClickA(0)">近一年</span>
              <span :class="isShowA == 1 ? 'one' : 'five'"
                    @click="bindClickA(1)">近五年</span>
            </div>
          </div>
          <div id="three">
            <FoldedColumnMixing :option="optionOne"></FoldedColumnMixing>
          </div>
        </div>
      </li>
      <li class="left-one">
        <div class="box">
          <h6>新渠道</h6>
          <div class="top">
            <div class="u2">
              <span :class="isShowB == 0 ? 'one' : 'five'"
                    @click="bindClickB(0)">近一年</span>
              <span :class="isShowB == 1 ? 'one' : 'five'"
                    @click="bindClickB(1)">近五年</span>
            </div>
          </div>
          <div id="three">
            <FoldedColumnMixing :option="optionTow"></FoldedColumnMixing>
          </div>
        </div>

      </li>
    </ul>
    <div class="center">
      <Statistics :option="option"></Statistics>
      <div class="box">
        <div class="checkbox">
          <el-checkbox v-model="checkedA">商超</el-checkbox>
          <el-checkbox v-model="checkedB">电商</el-checkbox>
          <el-checkbox v-model="checkedC">大B</el-checkbox>
          <el-checkbox v-model="checkedD">批发市场</el-checkbox>
        </div>
      </div>
      <ChainMap></ChainMap>
    </div>
    <ul class="left">
      <li class="left-one">
        <div class="box">
          <h6>商超</h6>
          <div class="top">
            <div class="u2">
              <span :class="isShowC == 0 ? 'one' : 'five'"
                    @click="bindClickC(0)">近一年</span>
              <span :class="isShowC == 1 ? 'one' : 'five'"
                    @click="bindClickC(1)">近五年</span>
            </div>
          </div>
          <div id="three">
            <FoldedColumnMixing :option="optionThree"></FoldedColumnMixing>
          </div>
        </div>
      </li>
      <li class="left-one">
        <div class="box">
          <h6>大B</h6>
          <div class="top">
            <div class="u2">
              <span :class="isShowD == 0 ? 'one' : 'five'"
                    @click="bindClickD(0)">近一年</span>
              <span :class="isShowD == 1 ? 'one' : 'five'"
                    @click="bindClickD(1)">近五年</span>
            </div>
          </div>
          <div id="three">
            <FoldedColumnMixing :option="optionFour"></FoldedColumnMixing>
          </div>
        </div>
      </li>
      <li class="left-one">
        <div class="box">
          <h6>电商</h6>
          <div class="top">
            <div class="u2">
              <span :class="isShowF == 0 ? 'one' : 'five'"
                    @click="bindClickF(0)">近一年</span>
              <span :class="isShowF == 1 ? 'one' : 'five'"
                    @click="bindClickF(1)">近五年</span>
            </div>
          </div>
          <div id="three">
            <FoldedColumnMixing :option="optionFive"></FoldedColumnMixing>
          </div>
        </div>
      </li>
    </ul>
  </div> -->
</template>

<script>
import * as echarts from 'echarts';
import { httpBigBTradeChart, httpECommerceTradeChart, httpWholesaleMarketTradeChart, httpSupermarketTradeChart, httpVariousChannelChart, httpChannelSummaryChart } from '@/common/api/api'
import FoldedColumnMixing from '../../components/foldedColumnMixing.vue'
import Statistics from '../../components/statistics.vue'
import ChainMap from '../../components/chainMap.vue'
export default {
  components: {
    FoldedColumnMixing,
    Statistics,
    ChainMap
  },
  data () {
    return {
      isShowA: 0,
      isShowB: 0,
      isShowC: 0,
      isShowD: 0,
      isShowF: 0,
      checkedA: true,
      checkedB: true,
      checkedC: true,
      checkedD: true,
      option: [
        { id: 1, dataValue: '10', unit: '万吨', dataName: '近一年销售总量', color: 'color:#64B7EC' },
        { id: 2, dataValue: '50', unit: '亿元', dataName: '近一年销售总额', color: 'color:#F56E6A' },
        { id: 3, dataValue: '26', unit: '万吨', dataName: '新渠道销售总量', color: 'color:#F69E0D' },
        { id: 4, dataValue: '40', unit: '亿元', dataName: '新渠道销售总额', color: 'color:#6EC71E' },
      ],
      optionOne: {
        unitA: '单位：万吨',
        unitB: '单位: 亿元',
        nameA: '销售量',
        nameB: '销售额',
        maxA: 100,
        maxB: 10,
        intervalA: 20,
        intervalB: 2,
        colorA: 'rgba(246, 158, 13, 1)',
        colorB: 'rgba(72, 126, 234, 1)',
        brokenLineData: [],
        pieData: [],
        date: []
      },
      optionTow: {
        unitA: '单位：万吨',
        unitB: '金额: 亿元',
        data: ['销量', '销售额'],
        colorA: 'rgba(100, 183, 236, 1)',
        colorB: 'rgba(72, 126, 234, 1)',
        brokenLineData: [5, 3, 7, 8, 8, 2, 6, 9, 8, 6, 1, 4],
        pieData: [3, 1, 3, 4, 3, 8, 3, 4, 8, 5, 10, 9],
        date: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
      },
      optionThree: {
        unitA: '单位：万吨',
        unitB: '单位: 亿元',
        nameA: '销售量',
        nameB: '销售额',
        maxA: 10,
        maxB: 1,
        intervalA: 2,
        intervalB: 0.2,
        colorA: 'rgba(110, 199, 30, 1)',
        colorB: 'rgba(72, 126, 234, 1)',
        brokenLineData: [],
        pieData: [],
        date: []
      },
      optionFour: {
        unitA: '单位：万吨',
        unitB: '单位: 亿元',
        nameA: '销售量',
        nameB: '销售额',
        maxA: 10,
        maxB: 1,
        intervalA: 2,
        intervalB: 0.2,
        colorA: 'rgba(245, 110, 106, 1)',
        colorB: 'rgba(72, 126, 234, 1)',
        brokenLineData: [],
        pieData: [],
        date: []
      },
      optionFive: {
        unitA: '单位：万吨',
        unitB: '单位: 亿元',
        nameA: '销售量',
        nameB: '销售额',
        maxA: 1,
        maxB: 1,
        intervalA: 0.2,
        intervalB: 0.2,
        colorA: 'rgba(245, 110, 106, 1)',
        colorB: 'rgba(72, 126, 234, 1)',
        brokenLineData: [],
        pieData: [],
        date: []
      },
      bigBTradeChart: {},
      eCommerceTradeChart: {},
      wholesaleMarketTradeChart: {},
      variousChannelChart: {},
      salesAmountList: [],
      channelSummaryList: []
    }
  },
  methods: {
    pursueOne () {
      const than = this
      var myChart = echarts.init(document.getElementById('one'));
      myChart.setOption({
        tooltip: {
          show: true,
          trigger: 'item',
          formatter: '{c}%'
        },
        series: [
          {
            // name: 'Access From',
            type: 'pie',
            radius: '35%',
            label: {
              position: 'outer',
              alignTo: 'none',
              bleedMargin: 5
            },
            data: than.variousChannelChart.salesAmountList
            // [
            //   {
            //     value: 70,
            //     name: '70%'
            //   },
            //   {
            //     value: 68,
            //     name: '68%'

            //   },
            //   {
            //     value: 48,
            //     name: '48%'
            //   },

            // ],
          }
        ]
      })
    },
    pursueTwo () {
      const than = this
      var myChart = echarts.init(document.getElementById('two'));
      myChart.setOption({
        tooltip: {
          show: true,
          trigger: 'item',
          formatter: '{c}%'
        },
        series: [
          {
            // name: 'Access From',
            type: 'pie',
            radius: '35%',
            label: {
              position: 'outer',
              alignTo: 'none',
              bleedMargin: 5
            },
            data: than.variousChannelChart.salesVolumeList,
          }
        ]
      })
    },
    bindClickA (e) {
      if (e == 0) {
        this.isShowA = e
        this.optionOne.maxA = 100
        this.optionOne.maxB = 10
        this.optionOne.intervalA = 20
        this.optionOne.intervalB = 2
        this.optionOne.date = this.wholesaleMarketTradeChart.dateListOneYear
        this.optionOne.brokenLineData = this.wholesaleMarketTradeChart.salesVolumeListOneYear
        this.optionOne.pieData = this.wholesaleMarketTradeChart.salesAmountListOneYear
      } else {
        this.isShowA = e
        this.optionOne.maxA = 1000
        this.optionOne.maxB = 100
        this.optionOne.intervalA = 200
        this.optionOne.intervalB = 20
        this.optionOne.date = this.wholesaleMarketTradeChart.dateListFiveYear
        this.optionOne.brokenLineData = this.wholesaleMarketTradeChart.salesVolumeListFiveYear
        this.optionOne.pieData = this.wholesaleMarketTradeChart.salesAmountListFiveYear
      }
    },
    bindClickB (e) {
      if (e == 0) {
        this.isShowB = e
        this.optionTow.date = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
        this.optionTow.brokenLineData = [5, 3, 7, 8, 8, 2, 6, 9, 8, 6, 1, 4]
        this.optionTow.pieData = [3, 1, 3, 4, 3, 8, 3, 4, 8, 5, 10, 9]
      } else {
        this.isShowB = e
        this.optionTow.date = ['2006年', '2007年', '2008年', '2009年', '20010年']
        this.optionTow.brokenLineData = [3, 1, 3, 4, 3]
        this.optionTow.pieData = [5, 3, 7, 8, 8]
      }
    },
    bindClickC (e) {
      if (e == 0) {
        this.isShowC = e
        this.optionThree.maxA = 10
        this.optionThree.maxB = 1
        this.optionThree.intervalA = 2
        this.optionThree.intervalB = 0.2
        this.optionThree.date = this.supermarketTradeChart.dateListOneYear
        this.optionThree.brokenLineData = this.supermarketTradeChart.salesVolumeListOneYear
        this.optionThree.pieData = this.supermarketTradeChart.salesAmountListOneYear
      } else {
        this.isShowC = e
        this.optionThree.maxA = 100
        this.optionThree.maxB = 10
        this.optionThree.intervalA = 20
        this.optionThree.intervalB = 2
        this.optionThree.date = this.supermarketTradeChart.dateListFiveYear
        this.optionThree.brokenLineData = this.supermarketTradeChart.salesVolumeListFiveYear
        this.optionThree.pieData = this.supermarketTradeChart.salesAmountListFiveYear
      }
    },
    bindClickD (e) {
      if (e == 0) {
        this.isShowD = e
        this.optionFour.maxA = 10
        this.optionFour.maxB = 1
        this.optionFour.intervalA = 2
        this.optionFour.intervalB = 0.2
        this.optionFour.date = this.bigBTradeChart.dateListOneYear
        this.optionFour.brokenLineData = this.bigBTradeChart.salesVolumeListOneYear
        this.optionFour.pieData = this.bigBTradeChart.salesAmountListOneYear
      } else {
        this.isShowD = e
        this.optionFour.maxA = 100
        this.optionFour.maxB = 10
        this.optionFour.intervalA = 20
        this.optionFour.intervalB = 2
        this.optionFour.date = this.bigBTradeChart.dateListFiveYear
        this.optionFour.brokenLineData = this.bigBTradeChart.salesVolumeListFiveYear
        this.optionFour.pieData = this.bigBTradeChart.salesAmountListFiveYear
      }
    },
    bindClickF (e) {
      if (e == 0) {
        this.isShowF = e
        this.optionFive.maxA = 1
        this.optionFive.maxB = 1
        this.optionFive.intervalA = 0.2
        this.optionFive.intervalB = 0.2
        this.optionFive.date = this.eCommerceTradeChart.dateListOneYear
        this.optionFive.brokenLineData = this.eCommerceTradeChart.salesVolumeListOneYear
        this.optionFive.pieData = this.eCommerceTradeChart.salesAmountListOneYear
      } else {
        this.isShowF = e
        this.optionFive.maxA = 10
        this.optionFive.maxB = 1
        this.optionFive.intervalA = 2
        this.optionFive.intervalB = 0.2
        this.optionFive.date = this.eCommerceTradeChart.dateListFiveYear
        this.optionFive.brokenLineData = this.eCommerceTradeChart.salesVolumeListFiveYear
        this.optionFive.pieData = this.eCommerceTradeChart.salesAmountListFiveYear
      }
    },
    // 获取大B贸易统计图 
    getBigBTradeChart () {
      httpBigBTradeChart().then(res => {
        const { bigBTradeChart } = res.data
        this.bigBTradeChart = bigBTradeChart
        this.optionFour.date = bigBTradeChart.dateListOneYear
        this.optionFour.brokenLineData = bigBTradeChart.salesVolumeListOneYear
        this.optionFour.pieData = bigBTradeChart.salesAmountListOneYear
      })
    },
    // 获取电商贸易统计图
    getECommerceTradeChart () {
      httpECommerceTradeChart().then(res => {
        const { eCommerceTradeChart } = res.data
        this.eCommerceTradeChart = eCommerceTradeChart
        this.optionFive.date = eCommerceTradeChart.dateListOneYear
        this.optionFive.brokenLineData = eCommerceTradeChart.salesVolumeListOneYear
        this.optionFive.pieData = eCommerceTradeChart.salesAmountListOneYear
      })
    },
    getTradeSummaryChart () {
      httpWholesaleMarketTradeChart().then(res => {
        const { wholesaleMarketTradeChart } = res.data
        this.wholesaleMarketTradeChart = wholesaleMarketTradeChart
        this.optionOne.date = wholesaleMarketTradeChart.dateListOneYear
        this.optionOne.brokenLineData = wholesaleMarketTradeChart.salesVolumeListOneYear
        this.optionOne.pieData = wholesaleMarketTradeChart.salesAmountListOneYear
      })
    },
    getSupermarketTradeChart () {
      httpSupermarketTradeChart().then(res => {
        const { supermarketTradeChart } = res.data
        this.supermarketTradeChart = supermarketTradeChart
        this.optionThree.date = supermarketTradeChart.dateListOneYear
        this.optionThree.brokenLineData = supermarketTradeChart.salesVolumeListOneYear
        this.optionThree.pieData = supermarketTradeChart.salesAmountListOneYear
      })
    },
    getVariousChannelChart () {
      httpVariousChannelChart().then(res => {
        const { VariousChannelChart } = res.data
        const arr = VariousChannelChart.salesAmountList
        const arr1 = VariousChannelChart.salesVolumeList
        var keyMap = {
          "channelType": "name",
          "salesAmountProportion": "value"
        };
        var keyMap1 = {
          "channelType": "name",
          "salesVolumeProportion": "value"
        };
        for (var i = 0; i < arr.length; i++) {
          var obj = arr[i];
          for (var key in obj) {
            var newKey = keyMap[key];
            if (newKey) {
              obj[newKey] = obj[key];
              delete obj[key];
            }
          }
        }
        for (var j = 0; j < arr1.length; j++) {
          var obj1 = arr1[j];
          for (var key1 in obj1) {
            var newKey1 = keyMap1[key1];
            if (newKey1) {
              obj1[newKey1] = obj1[key1];
              delete obj1[key1];
            }
          }
        }
        this.variousChannelChart = VariousChannelChart
      })
    },
    getChannelSummaryChart () {
      httpChannelSummaryChart().then(res => {
        const { channelSummaryList } = res.data
        for (var i = 0; i < this.option.length; i++) {
          for (var j = 0; j < channelSummaryList.length; j++) {
            var channe = channelSummaryList[j];
            channe['color'] = this.option[i]
          }
        }
        console.log("channelSummaryList", channelSummaryList);
        this.option = channelSummaryList
      })
    }
  },
  created () {
    this.getVariousChannelChart()
  },
  mounted () {
    this.getBigBTradeChart(),
      this.getECommerceTradeChart(),
      this.getTradeSummaryChart(),
      this.getSupermarketTradeChart()
    // 时间间隔
    setTimeout(() => {
      this.pursueOne()
      this.pursueTwo()
    }, 1000)
    this.getChannelSummaryChart()
  }
}
</script>

<style lang="scss" scoped>
.qualitySafety_container {
  height: 95.26%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  .left_box {
    width: calc(100% - 1.56% - 74%);
    height: 100%;
    .box {
      margin-bottom: 0.125rem;
      background-color: #fff;
      padding-top: 0.25rem;
      h6 {
        border-left: 0.05rem solid #487eea;
        padding-left: 0.15rem;
        margin-left: 0.25rem;
      }
      .unit {
        display: flex;
        justify-content: space-around;
        padding-top: 0.125rem;
        span {
          font-size: 0.15rem;
          font-family: Source Han Sans CN;
          font-weight: 400;
          color: #666666;
        }
      }
      .map {
        display: flex;
        justify-content: space-between;
        #one {
          width: 2.5rem;
          height: 2.5rem;
        }
        #two {
          width: 2.5rem;
          height: 2.5rem;
        }
      }
      .button {
        display: flex;
        justify-content: space-around;
        padding-bottom: 0.225rem;
        p {
          padding-left: 0.125rem;
        }
        p:nth-child(1) {
          border-left: 0.2rem solid #818af8;
        }
        p:nth-child(2) {
          border-left: 0.2rem solid #f69e0d;
        }
        p:nth-child(3) {
          border-left: 0.2rem solid #64b7ec;
        }
        p:nth-child(4) {
          border-left: 0.2rem solid #f56e6a;
        }
      }
      .top {
        position: relative;
        .u2 {
          position: absolute;
          right: 10%;
          bottom: -46;
          z-index: 9999;
          .one {
            width: 1rem;
            height: 0.325rem;
            background: #487eea;
            font-size: 0.175rem;
            font-family: Source Han Sans CN;
            font-weight: 500;
            color: #ffffff;
            border: 1px solid #e4e4e4;
            text-align: center;
            line-height: 0.325rem;
            border-left-style: none;
            padding: 0.05rem 0.075rem;
          }
          .five {
            width: 1rem;
            height: 0.325rem;
            background: #fff;
            font-size: 0.175rem;
            font-family: Source Han Sans CN;
            font-weight: 500;
            color: #666666;
            border: 1px solid #e4e4e4;
            text-align: center;
            line-height: 0.325rem;
            padding: 0.05rem 0.075rem;
          }
        }
      }
    }
  }
  .center_box {
    width: 50%;
    padding: 0 0.15rem 0.075rem 0.15rem;
    color: #fff;
    .statistics {
      padding-top: 0.25rem;
      background-color: #fff;
      h6 {
        border-left: 0.05rem solid #487eea;
        font-size: 0.225rem;
        color: #000;
        margin-left: 0.25rem;
        padding-left: 0.1125rem;
      }
    }
    .box {
      background-color: #fff;
      margin-bottom: 0.125rem;
      padding-top: 0.25rem;
      h6 {
        border-left: 0.05rem solid #487eea;
        font-size: 0.225rem;
        color: #000;
        margin-left: 0.25rem;
        padding-left: 0.1125rem;
      }
      .checkbox {
        margin-left: 0.25rem;
        padding-top: .275rem;
      }
      .double {
        padding-top: 0.3rem;
        ul {
          display: flex;
          justify-content: space-between;
        }
      }
    }
    .buttom {
      background-color: #fff;
      padding-top: 0.25rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      h6 {
        border-left: 0.05rem solid #487eea;
        font-size: 0.225rem;
        color: #000;
        margin-left: 0.25rem;
        padding-left: 0.1125rem;
      }
      .u2 {
        padding-right: 0.625rem;
        .one {
          width: 1rem;
          height: 0.325rem;
          background: #487eea;
          font-size: 0.175rem;
          font-family: Source Han Sans CN;
          font-weight: 500;
          color: #ffffff;
          border: 1px solid #e4e4e4;
          text-align: center;
          line-height: 0.325rem;
          border-left-style: none;
          padding: 0.05rem 0.075rem;
        }
        .five {
          width: 1rem;
          height: 0.325rem;
          background: #fff;
          font-size: 14px;
          font-family: Source Han Sans CN;
          font-weight: 500;
          color: #666666;
          border: 1px solid #e4e4e4;
          text-align: center;
          line-height: 0.325rem;
          padding: 0.05rem 0.075rem;
        }
      }
    }
  }
  .right_box {
    width: calc(100% - 1.56% - 74%);
    height: 100%;
    .box {
      margin-bottom: 0.125rem;
      background-color: #fff;
      padding-top: 0.25rem;
      h6 {
        border-left: 0.05rem solid #487eea;
        padding-left: 0.15rem;
        margin-left: 0.25rem;
      }
      .top {
        position: relative;
        .u2 {
          position: absolute;
          right: 10%;
          bottom: -46;
          z-index: 9999;
          .one {
            width: 1rem;
            height: 0.325rem;
            background: #487eea;
            font-size: 0.175rem;
            font-family: Source Han Sans CN;
            font-weight: 500;
            color: #ffffff;
            border: 1px solid #e4e4e4;
            text-align: center;
            line-height: 0.325rem;
            border-left-style: none;
            padding: 0.05rem 0.075rem;
          }
          .five {
            width: 1rem;
            height: 0.325rem;
            background: #fff;
            font-size: 0.175rem;
            font-family: Source Han Sans CN;
            font-weight: 500;
            color: #666666;
            border: 1px solid #e4e4e4;
            text-align: center;
            line-height: 0.325rem;
            padding: 0.05rem 0.075rem;
          }
        }
      }
    }
  }
}

/* .content {
  display: flex;
  overflow: hidden;
}

.content .left {
  box-sizing: content-box;
  box-sizing: border-box;
  width: 25%;
}

.left-one {
  height: 4.8125rem;
  background: #ffffff;
  margin-top: 0.125rem;
}

.left-one .box {
  padding-top: 0.25rem;
  margin-left: 0.15rem;
}

.left-one .box h6 {
  border-left: 0.05rem solid #487eea;
  padding-left: 0.15rem;
}

.left-one .box .unit {
  padding-top: 0.25rem;
  display: flex;
  justify-content: space-around;
}

.left-one .box .unit span {
  font-size: 0.15rem;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #666666;
}

.left-one .box .map {
  display: flex;
  justify-content: space-between;
}

.left-one .box .map #one {
  width: 2.5rem;
  height: 2.5rem;
}

.left-one .box .map #two {
  width: 2.5rem;
  height: 2.5rem;
}

.left-one .box #three {
  height: 4.375rem;
}

.left-one .box .button {
  display: flex;
  justify-content: space-around;
}

.box .button p {
  padding-left: 0.125rem;
}

.box .button p:nth-child(1) {
  border-left: 0.2rem solid #818af8;
}

.box .button p:nth-child(2) {
  border-left: 0.2rem solid #f69e0d;
}

.box .button p:nth-child(3) {
  border-left: 0.2rem solid #64b7ec;
}

.box .button p:nth-child(4) {
  border-left: 0.2rem solid #f56e6a;
}

.right-one {
  height: 4rem;
  background: #ffffff;
  margin-top: 0.125rem;
}

.content .center {
  flex: 1;
  background: #ffffff;
  margin: 0.125rem;
}

.center .box {
  margin-left: 0.25rem;
}

.center .box h6 {
  border-left: 0.05rem solid #487eea;
  padding-left: 0.15rem;
}

.center .box .checkbox {
  padding-top: 0.275rem;
}


.left-one .box .top {
  display: flex;
  justify-content: space-between;
  padding-top: 0.1625rem;
  padding-right: 0.25rem;
}

.box .top {
  position: relative;
}

.left-one .box .top .u1 {
  font-size: 0.15rem;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #666666;
}

.box .top .u2 {
  position: absolute;
  left: 31%;
  bottom: -46;
  z-index: 9999;
}

.box .top .u2 .one {
  width: 1rem;
  height: 0.325rem;
  background: #487eea;
  font-size: 14px;
  font-family: Source Han Sans CN;
  font-weight: 500;
  color: #ffffff;
  border: 1px solid #e4e4e4;
  text-align: center;
  line-height: 0.325rem;
  border-left-style: none;
  padding: 0.05rem 0.075rem;
}

.box .top .u2 .five {
  width: 1rem;
  height: 0.325rem;
  background: #fff;
  font-size: 0.175rem;
  font-family: Source Han Sans CN;
  font-weight: 500;
  color: #666666;
  border: 1px solid #e4e4e4;
  text-align: center;
  line-height: 0.325rem;
  padding: 0.05rem 0.075rem;
} */
</style>
